<?php
class robot_pdo{

	private static $instance;

    public static function &get_instance() {
        if (!self::$instance) {
            self::$instance = new self();
        }
        return self::$instance;
    }

	public function __construct(){

		$dsn = 'mysql:dbname=msn;host=127.0.0.1;port=3306';
		$user = 'root';
		$password = '';
		$this->bbs_pdo = new PDO($dsn, $user, $password);
		$this->bbs_pdo->exec('SET CHARACTER SET utf8');
		$this->bbs_pdo->exec('SET NAMES utf8');

	}

	public function get_bbs_pdo(){
		return $this->bbs_pdo;
	}

}